package com.pair.micro.common.constant.params;

/**
 * 默认参数
 *
 * @author menglt
 * @since 2020-07-20 09:29
 */
public class MicroDefaultParams {

  /* 开发者menglt */
  public static final String super_admin_menglt = "menglt";

  /* 开发者xuzx */
  public static final String super_admin_xuzx = "xuzx";

  /* 开发者wangk */
  public static final String super_admin_wangk = "wangk";

  /* 开发者lijx */
  public static final String super_admin_lijx = "lijx";

  /* 开发者wangzs */
  public static final String super_admin_wangzs = "wangzs";

  /* 嘉悦云平台 系统自动处理时 全部默认此字段 */
  public static final String super_admin_jycloud = "jycloud";

  /* 匿名访问接口使用 */
  public static final String super_admin_anonymous = "anonymous";

  /* 默认嘉悦云加密key */
  public static final String default_sign_key = "jycloud";

  public static final String default_jykey = "jycloud";

  /* 默认嘉悦云授权secret */
  public static final String default_skl_jysecret = "jycloudSkl";
  public static final String default_store_jysecret = "jycloudStore";
  public static final String default_mall_jysecret = "jycloudMall";
  public static final String default_event_jysecret = "jycloudEvent";

  /* 默认头像 */
  //  public static final String default_avatar =
  //
  // "https://jycloud-skl.oss-cn-beijing.aliyuncs.com/jycloud/superAdmin/logo/%E9%BB%98%E8%AE%A4%E5%A4%B4%E5%83%8F.png";

  /* 默认头像 */
  public static final String default_avatar =
      "https://jycloud-skl.oss-cn-beijing.aliyuncs.com/jycloud/browser/avatar.png";

  /* 默认logo */
  public static final String default_logo =
      "https://jycloud-skl.oss-cn-beijing.aliyuncs.com/jycloud/superAdmin/logo/icon.png";

  /* 管理端登录页背景 */
  public static final String default_admin_background =
      "https://jycloud-skl.oss-cn-beijing.aliyuncs.com/jycloud/browser/adminbg.jpg";

  /* 营销端登录页背景 */
  public static final String default_market_background =
      "https://jycloud-skl.oss-cn-beijing.aliyuncs.com/jycloud/browser/marketbg.jpg";

  /* 临时商品banner图 */
  public static final String default_temp_sku_banner_pic =
      "https://oss.suokelian.com/1261137169473474560/superMarket/static_pic/20201010/JY1314760048802799616.png";

  public static boolean isDefaultJyKey(String jyKey) {
    return default_jykey.equals(jyKey);
  }

  public static boolean isDefaultSuperAdmin(String superAdmin) {
    return super_admin_menglt.equals(superAdmin) || super_admin_xuzx.equals(superAdmin);
  }

  public static boolean isDefaultSklAuth(String jyKey, String jySecret) {
    return jyKey.equals(default_jykey) && jySecret.equals(default_skl_jysecret);
  }

  public static boolean isDefaultStoreAuth(String jyKey, String jySecret) {
    return jyKey.equals(default_jykey) && jySecret.equals(default_store_jysecret);
  }

  public static boolean isDefaultMallAuth(String jyKey, String jySecret) {
    return jyKey.equals(default_jykey) && jySecret.equals(default_mall_jysecret);
  }

  public static boolean isDefaultEventAuth(String jyKey, String jySecret) {
    return jyKey.equals(default_jykey) && jySecret.equals(default_event_jysecret);
  }
}
